var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
    entry:'./index.js',
    output: {
        path: __dirname + '/dist/multiple',
        filename: '[name].bundle.js'
    },
    plugins: [
        new HtmlWebpackPlugin({
            title:"home",
            inject:'head',
            template: 'src/tpl/my-index.ejs',
           
        }), // Generates default index.html 
        new HtmlWebpackPlugin({  // Also generate a test.html 
            filename: 'test.html',
            template: 'src/tpl/test.html'
            
        })
        
    ]
   
}